<?php
use_helper('I18N');
?>
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript" language="javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch(e) {
        }
        $(function() {

        }); // end function
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#"><?php echo __('Report') ?></a>
        </li>
        <li class="active"><?php echo __('Daily Report') ?></li>
    </ul>
    <!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon">
                <input type="text" placeholder="Search ..." class="nav-search-input"
                       id="nav-search-input" autocomplete="off"/>
                <i class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>

<div class="page-content">
<div class="page-header">
    <h1>
        <?php echo __('Report') ?>
        <small>
            <i class="icon-double-angle-right"></i>
            <?php echo __('Daily Report') ?>
        </small>
    </h1>
</div>
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->

<?php include_component('component', 'alert', array('param' => $sf_user->getAttribute(Globals::SESSION_DISTID, 0))) ?>

<div class="row">
<div class="space-6"></div>

<div class="col-xs-12">
<div class="table-responsive">

<div class="table-responsive">
<table id="sample-table-1" class="table table-striped table-bordered table-hover">
<thead>
<tr>
    <th><?php echo __('Date') ?></th>
    <th><?php echo __('Operation Amount') ?></th>
    <th><?php echo __('Operation Rate(%)') ?></th>
    <th><?php echo __('Operating Profit') ?></th>
</tr>
</thead>

<tbody>
<?php foreach ($mlmRoiDividends as $mlmRoiDividend) { ?>
<tr>
    <td><?php echo $mlmRoiDividend->getDividendDate(); ?></td>
    <td><?php echo number_format($mlmRoiDividend->getMt4Balance()); ?></td>
    <td><?php echo $mlmRoiDividend->getRoiPercentage(); ?></td>
    <?php if ($mlmRoiDividend->getDividendAmount() > 0) { ?>
    <td><b class="green"><?php echo number_format($mlmRoiDividend->getDividendAmount(), 2); ?></b></td>
    <?php } else { ?>
    <td><b class="red"><?php echo number_format($mlmRoiDividend->getDividendAmount(), 2); ?></b></td>
    <?php } ?>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<!-- /.table-responsive -->

</div>
</div>

<div class="vspace-sm"></div>

<!-- /span -->
</div>
<!-- /row -->

<div class="hr hr32 hr-dotted"></div>

<!-- /row -->

<!-- PAGE CONTENT ENDS -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div><!-- /.page-content -->